package cn.edu.kzjsxy.graduationproject.service;

import cn.edu.kzjsxy.graduationproject.common.Page;
import cn.edu.kzjsxy.graduationproject.common.Result;
import cn.edu.kzjsxy.graduationproject.entity.Buildings;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 楼栋信息表 服务类
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
public interface IBuildingsService extends IService<Buildings> {

//    <!-- 根据条件查询楼栋信息 -->
	List<Buildings> selectBuildingsByCondition(Buildings buildings, HttpServletRequest request);

//	分页根据条件查询 楼栋信息
	Result<PageInfo<Buildings>> selectBuildingsByPage(Page page, Buildings building,HttpServletRequest request);

	//	根据宿管id查询宿管姓名 housemasterName
	Buildings getHousemasterNameByHousemasterId(Buildings buildings);

	//	根据宿管id查询宿管姓名 housemasterName
	List<Buildings> getHousemasterNameByHousemasterId(List<Buildings> buildingsList);
}
